<b>CẤU HÌNH HIỂN THỊ SOẠN GIẢ</b><br/>
<?php
if (isset($_GET['act']))
{
	$artist='';
	$cmd="SELECT * FROM `select`";
	$excute=mysql_query($cmd);
	while($info=mysql_fetch_array($excute,MYSQL_ASSOC))
		if (isset($_POST['artist'.$info['select_id']])) $artist.=$info['select_id'].'-';
	$cmd="UPDATE `module` SET `module_data`='".$artist."' WHERE module_id=".$_GET['config'];
	mysql_query($cmd);
echo 'Đã thiết lập lại soạn giả trong danh sách hiển thị !';	
} else
{
echo '<form method="post" action="/mem/?menu=module&config=6&act=save"><input type="submit" name="submit" class="buttonclick" value="Lưu">';
	
	$cmd="SELECT * FROM `select` WHERE (select_type=3) OR (select_type=2) ORDER BY `select_art` ASC";
	$excute=mysql_query($cmd);
	echo '<div class="listbox">';	
	
	
	$cmd="SELECT * FROM `module` WHERE module_id=5";
	$info=mysql_fetch_assoc(mysql_query($cmd));
	$artistarray=encode($info['module_data']);
	
	while($info=mysql_fetch_array($excute,MYSQL_ASSOC))
	{
		if (in_array($info['select_id'],$artistarray)) $valuep=' checked '; else $valuep='';
echo '<div class="listitem1" artistid="'.$info['select_id'].'"><input type="checkbox"'.$valuep.' name="'.'artist'.$info['select_id'].'"  id="box1'.$info['select_id'].'" /><a>'.$info['select_art'].'</a></div>';
	}
echo '</div></form>';
}
?>